package com.atguigu.edupublisher.service.impl;

import com.atguigu.edupublisher.beans.TradeProvinceOrderCt;
import com.atguigu.edupublisher.mapper.TradeStatsMapper;
import com.atguigu.edupublisher.service.TradeStatsService;
import org.springframework.beans.factory.annotation.Autowired;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName TradeStatsServiceImpl
 * @Description TODO
 * @Author$ 邢家俊
 * @Date 2023-5-8 20:25
 * @Version 1.0
 **/
public class TradeStatsServiceImpl implements TradeStatsService {
    @Autowired
    private TradeStatsMapper tradeStatsMapper;

    @Override
    public BigDecimal getGMV(Integer date) {
        return tradeStatsMapper.selectGMV(date);
    }

    @Override
    public List<TradeProvinceOrderCt> gettpramount(Integer date) {
        return tradeStatsMapper.selectpramount(date);
    }

}
